import i18n from '@/i18n'

export const validateRelatedMoney = () => {
  return (rule, value, callback) => {
    if (Number(value) <= 0) {
      callback(new Error(i18n.global.t('msg.member.chargeRule')))
    } else {
      callback()
    }
  }
}
